
<?php

class dengluView extends GetLoad
{
	
	
		public function jianliView($data){
				
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>登陆</title> 
	<link rel="stylesheet" href="./css/bootstrap.min.css">  
	<script src="./js/jquery.min.js"></script>
	<script src="./js/bootstrap.min.js"></script>
</head>

<body style=" background-image: url(./img/back.jpg);background-size:100% 120%; ">
<div style="height:300px; width:600px; margin-bottom:auto;margin-left:auto;margin-right:auto;margin-top:25%;background-color:rgba(217,214,213,0.7);">
<div style="width:600px;height:100px"></div>
<div style="width:500px;height:150px">
	<form class="form-horizontal" role="form" action="./index.php" method="post">
		<div class="form-group">
			<?php if(isset($data)){ ?>
			

			<?php if($data[0]==1) { ?>


			<p style="color:red" >您输入的账号或密码错误</p>
			


			<?php }elseif ($data[0]==2) { ?>
				
			<p style="color:red" >您没有登录或您没有教师权限</p>
			

			<?php } }?>

			<label class="col-sm-2 control-label">用户名</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="name" name="name"
			   placeholder="请输入名称">
			</div>
		</div>
		<div class="form-group" style="margin-top:10%">
			<label for="inputPassword" class="col-sm-2 control-label">密码</label>
			<div class="col-sm-10">
				<input type="password" class="form-control" id="inputPassword" name="password"
					   placeholder="请输入密码">
				 <button type="submit">登录</button>
				 <div style="background-color: #FFFFFFFF;float: right;width: auto;margin-left: 10px;"><a href="./index.php?route=Controller/zhuce/ControllerZhuce/zhuce">申请学生账号</a></div>
				 <div style="background-color: #FFFFFFFF;float: right;width: auto;margin-left: 10px;"><a href="./index.php?route=Controller/jiaogong/Controllerjiaogong/zhuce">申请教师账号</a></div>
			</div>

		</div>
	</form>
</div>
</div>
</body>
</html>
<?php 
	}
}

?>